#!/bin/bash
#http服务进程设置
gnome-terminal --geometry "35x12" --title "http服务终端" -- bash -c "echo "http服务进程开启";
cd /home/hq/big_project/thttpd-master;
echo 1 | sudo -S ./thttpd.out;
exec bash"&
sleep 1s
xdotool windowmove $(xdotool search --name "http服务终端") 0 0
#设备搜索响应进程设置
gnome-terminal --geometry "35x12" --title "设备搜索响应终端" -- bash -c "echo "设备搜索响应进程开启";
cd /home/hq/big_project/tcp;
echo 1 | sudo -S ./a.out;
exec bash"&
sleep 1s
xdotool windowmove $(xdotool search --name "设备搜索响应终端") 1400 0
#数据上报进程设置
gnome-terminal --geometry "35x12" --title "数据上报终端" -- bash -c "echo "数据上报进程开启";
cd /home/hq/big_project/updata;
echo 1 | sudo -S ./test;
exec bash"&
sleep 1s
xdotool windowmove $(xdotool search --name "数据上报终端") 2100 0
#公有云上报进程设置
gnome-terminal --geometry "35x12" --title "公有云上报终端" -- bash -c "echo "公有云上报进程开启";
cd /home/hq/big_project/LinkSDK;
echo 1 | sudo -S ./output/data-model-basic-demo;
exec bash"&
sleep 1s
xdotool windowmove $(xdotool search --name "公有云上报终端") 0 600
#工业设备处理进程设置
gnome-terminal --geometry "35x12" --title "工业设备处理终端" -- bash -c "echo "工业设备处理进程开启";
cd /home/hq/big_project/modbus;
echo 1 | sudo -S ./test 192.168.50.234;
exec bash"&
sleep 1s
xdotool windowmove $(xdotool search --name "工业设备处理终端") 700 600
#单片机处理进程设置
gnome-terminal --geometry "35x12" --title "单片机处理终端" -- bash -c "echo "单片机处理进程开启";
cd /home/hq/big_project/Course;
echo 1 | sudo -S ./stm32_service;
exec bash"&
sleep 1s
xdotool windowmove $(xdotool search --name "单片机处理终端") 1400 600